from django.db import models

class Dialogue(models.Model):
    id = models.IntegerField(primary_key=True)
    uid = models.IntegerField()
    other_id = models.IntegerField()
    unread_amonunt = models.IntegerField()
    create_time = models.DateTimeField(blank=True, null=True,auto_now_add=True)
    update_time = models.DateTimeField(blank=True, null=True,auto_now=True)

    class Meta:
        managed = False
        db_table = 'dialogue'


class DialogueDesc(models.Model):
    id = models.IntegerField(primary_key=True)
    list_id = models.IntegerField()
    talking_id = models.IntegerField()
    content = models.TextField()
    create_time = models.DateTimeField(blank=True, null=True,auto_now_add=True)
    update_time = models.DateTimeField(blank=True, null=True,auto_now=True)

    class Meta:
        managed = False
        db_table = 'dialogue_desc'
